<?php $this->load->view('themes/'.$theme_id.'/header');?>
<script src="<?=RES?><?=$theme_id?>/js/artDialog/jquery.artDialog.js?skin=simple"></script>
<script src="<?=RES?><?=$theme_id?>/js/artDialog/plugins/iframeTools.js"></script>
<style type="text/css">
        #img { height: 60px; position: absolute; z-index: 9999; padding-right: 66px;  cursor: pointer;}
        #img p { padding: 0 20px; background: #5d9cec; line-height: 60px; color: #fff; font-size: 18px;}
</style>
<div class="banner i_banner">
    <div id="slideBox" class="slideBox">
        <div class="hd">
            <a class="prev" href="javascript:void(0)"></a>
            <a class="next" href="javascript:void(0)"></a>
        </div>
        <div class="bd">
            <ul>
                <?php foreach($figure_turns as $key=>$item){ ?>
			        <li><a href="<?=empty($item->url) ?'javascript:;' : $item->url ?>" target="_blank"><img width="1120" height="430" alt="<?=$item->alt?>" src="<?=$item->images?>" /></a></li>
                <?php } ?>
            </ul>
        </div>
    </div>
</div>
<div class="content i_content">
    <div class="w_1200">
        <div class="service">
            <div class="title fl">
                <?=lang('student_service')?>
            </div>
            <ul class="fl">
            <?php if(!empty($banner)){
                foreach($banner as $key=>$item){
            ?>
                <li class="s_<?=$key+1?>"><a href="<?=empty($item->url) ?'javascript:;' : $item->url ?>" target="_blank">
                    <span></span>
                    <h4><?=$item->title?></h4>
                    </a></li>
             <?php }}?>
            </ul>
        </div>
        <div class="program">
            <?=get_fragment_con(24)?>
            <!-- <div class="bottom">
                <ul>
                <?php if(!empty($degree)){
                    foreach ($degree as $k => $item){
                ?>
                    <li>
                        <a href="<?='/'.$lang_id.'/course?cid=55' ?>">
                            <img src="<?=empty($item->images)?'':$item->images ?>" width="298px" height="120px"/>
                            <div>
                                <h4><?=empty($item->title)?'':$item->title ?></h4>
                                <p><?=empty($item->info)?'':mb_substr($item->info,0,30).'...' ?></p>
                            </div>
                            <div class="mask"></div>
                        </a>
                    </li>
                <?php if($k==3){break;}  }} ?>
                </ul>
            </div> -->
        </div>
    </div>
</div>
<!-- 
<div id="news">
    <div class="w_1200">
        <div class="n_left fl">
            <p class="tit">新闻公告<a href="javascript:;" class="fr">MORE</a> </p>
            <dl>
                <dt class="fl"><span>07.29</span><br/>2015</dt>
                <dd class="fl" >
                    <h4><a href="javascript:;">本科生项目</a></h4>
                    <p>本科生项目一般有春季课程、春节课程和暑期课程，分别有不同的...<a href="javascript:;">更多</a> </p>
                </dd>
            </dl>
            <dl>
                <dt class="fl"><span>07.29</span><br/>2015</dt>
                <dd class="fl" >
                    <h4><a href="javascript:;">本科生项目</a></h4>
                    <p>本科生项目一般有春季课程、春节课程和暑期课程，分别有不同的...<a href="javascript:;">更多</a> </p>
                </dd>
            </dl>
            <dl>
                <dt class="fl"><span>07.29</span><br/>2015</dt>
                <dd class="fl" >
                    <h4><a href="javascript:;">本科生项目</a></h4>
                    <p>本科生项目一般有春季课程、春节课程和暑期课程，分别有不同的...<a href="javascript:;">更多</a> </p>
                </dd>
            </dl>
        </div>
        <div class="n_right fr">
            <a href="javascript:;">
                <img src="<?=RES?><?=$theme_id?>/images/ad.jpg"/>
            </a>
        </div>
    </div>
</div>

 -->
<?php if(!empty($recommend)){ ?>
<div id="news">
    <div class="w_1200">
        <div class="n_left fl"><?php $url = null; ?>
            <p class="tit"><?=lang('news_notice')?><a href="<?=$url.'/'.$lang_id.'/article?cid='.$recommend[0]->column_id?>" class="fr"><?=lang('more_r')?></a> </p>
            <?php foreach($recommend as $key=>$item){ ?>
            <?php
                        if($item->is_jump == 1){
                            $url = !empty($item->url_jump)?$item->url_jump : 'javascript:;';
                        }else{
                            $url = '/'.$lang_id.'/article/detail?cid='.$item->column_id.'&id='.$item->id;
                        }
                        
            ?>
            <dl>
                <dt class="fl"><span><?=empty($item->pubtime) ? date('m.d',time()) : date('m.d',$item->pubtime)?></span><br/><?=empty($item->pubtime) ? date('Y',time()) : date('Y',$item->pubtime)?></dt>
                <dd class="fl" >
                    <h4><a href="<?=$url ?>"><?=empty($item->title)?'': $item->title?></a></h4>
                    <?php if($lang_id == 'cn'){ ?>
                            <p><?=empty($item->info) ?strip_tags(mb_substr($item->content,0,30)) : mb_substr($item->info,0,30).'...'?><?=empty($item->info) ?'' : '<a href="'.$url.'">'.lang('more_r').'</a>' ?></p>
                        <?php }else{ ?>
                            <p><?=empty($item->info) ?strip_tags(mb_substr($item->content,0,65)) : mb_substr($item->info,0,65).'...'?><?=empty($item->info) ?'' : '<a href="'.$url.'">'.lang('more_r').'</a>' ?></p>
                        <?php } ?>                        
                        
                </dd>
            </dl>
            <?php } ?>
        </div>
<?=get_fragment_con(15)?>
    </div>
</div>
<?php } ?>

<div class="fac_list">
    <div class="w_1200">
        <div class="grid">
            <div class="shasha effect-chico" onclick="window.location='<?=empty($chart[0]->url) ?'javascript:;' : $chart[0]->url  ?>'">
                <img src="unknown"/>
                <div class="zhang">
                    <h2><?php !empty($chart[0]->title) ? $chart[0]->title : "未知" ?></h2>
                </div>
            </div>
            <div class="shasha effect-chico figure1" onclick="window.location='<?=empty($chart[1]->url) ?'javascript:;' : $chart[1]->url  ?>'">
                <img src="unknown"/>
                <div class="zhang">
                    <h2>unknown</h2>
                </div>
            </div>
            <div class="shasha effect-chico figure2" onclick="window.location='<?=empty($chart[2]->url) ?'javascript:;' : $chart[2]->url  ?>'">
                <img src="unknown"/>
                <div class="zhang">
                    <h2>unknown</h2>
                </div>
            </div>
            <div class="shasha effect-chico figure3" onclick="window.location='<?=empty($chart[3]->url) ?'javascript:;' : $chart[3]->url  ?>'">
                <img src="unknown"/>
                <div class="zhang">
                    <h2>unknown</h2>
                </div>
            </div>
            <div class="shasha effect-sarah figure4" onclick="window.location='<?=empty($chart[4]->url) ?'javascript:;' : $chart[4]->url  ?>'">
                <img src="unknown"/>
                <div class="zhang">
                    <h2>unknown</h2>
                    <p>unknown</p>
                </div>
            </div>
        </div>
        <div class="grid grid2">
            <div class="shasha effect-sarah" onclick="window.location='<?=empty($chart[5]->url) ?'javascript:;' : $chart[5]->url  ?>'">
                <img src="unknown"/>
                <div class="zhang">
                    <h2>unknown</h2>
                    <p>unknown</p>
                </div>
            </div>
        </div>
    </div>
</div>
<?=get_fragment_con(219)?>
<?php $this->load->view('themes/'.$theme_id.'/footer');?>

<script language=javascript>
  var xPos = 20;
 var yPos = document.body.clientHeight;
 var step = 1;
 var delay = 30;                     
 var height = 0;                     
 var Hoffset = 0;                    
 var Woffset = 0;                     
 var yon = 0;                    
 var xon = 0;                     
 var pause = true;                    
 var interval;                    
 img.style.top = yPos;                    
function changePos() {                   
 width = document.body.clientWidth;                    
 height = document.body.clientHeight;                    
 Hoffset = img.offsetHeight;                    
 Woffset = img.offsetWidth;                   
img.style.left = xPos + document.body.scrollLeft;                    
img.style.top = yPos + document.body.scrollTop;                    
 if (yon) {                  
 yPos = yPos + step;                    
 }               
 else {             
 yPos = yPos - step;                    
 }            
 if (yPos < 0) {                  
 yon = 1;                    
 yPos = 0;                    
}                  
 if (yPos >= (height - Hoffset)) {                    
 yon = 0;                    
 yPos = (height - Hoffset);                     
 }                  
 if (xon) {                    
 xPos = xPos + step;                    
 }                 
 else {                 
 xPos = xPos - step;                   
 }                  
 if (xPos < 0) {                    
 xon = 1;                   
xPos = 0;                   
 }         
 if (xPos >= (width - Woffset)) {                    
 xon = 0;           
xPos = (width - Woffset);                    
}                    
}
function start() {                    
img.style.visibility = "visible";                  
interval = setInterval('changePos()', delay);                    
} 
function pause_resume() {
if(pause) {clearInterval(interval);pause = false;}
else {interval = setInterval('changePos()',delay);pause = true;}
}

start(); 
</script>